<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
      xmlns:th="http://www.thymeleaf.org"
      layout:decorator="/shared/layout">
<head>
    <title>Update</title>
</head>
<body>
<div layout:fragment="content">
    <div class="container">
        <form method="post">
            <div class="form-group">
                <label for="key">Key</label>
                <input type="text" class="form-control" id="key" name="key" th:value="${model.key}" placeholder="Key">
            </div>
            <div class="form-group">
                <label for="value">value</label>
                <input type="text" class="form-control" id="value" name="value" th:value="${model.value}"
                       placeholder="value">
            </div>
            <button type="submit" class="btn btn-success">Update</button>
            <a th:href="@{/value/index/1}" class="btn btn-primary">Return to index</a>
        </form>
    </div>
</div>
</body>
</html>